package com.example.common.exception;

import lombok.Getter;

/**
 * @author cc
 * @classname ServerResponseException
 * @description TODO
 * @date 2022/8/11 16:11
 */
@Getter
public class ServerResponseException extends RuntimeException {
    private final int code;
    private final String msg;

    public ServerResponseException(String msg) {
        this(500, msg);
    }

    public ServerResponseException(int code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }
}
